package com.pattern.command;

public class RemoteControl {

    private Command command;

    public void setCommand(Command command) {
        this.command = command;
    }

    public void pressButton(){
        command.execute();
    }

    public void pressUndoButton(){
        command.undo();
    }


}
